@import './element-variables.scss';
// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type='file'] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block;
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

// el-table empty line-height too high
.el-table__empty-text {
  line-height: 54px;
}

// el-drawer style
.el-drawer__header {
  margin: 0 !important;
  padding: 14px 16px;
  color: rgba(0, 0, 0.65) !important;
  border-bottom: 1px solid #e8e8e8;
}

.el-drawer__body {
  overflow: auto;
  padding: 16px 16px 65px 16px;
}

.el-drawer__container ::-webkit-scrollbar {
  display: none;
}

.el-drawer__footer {
  width: 100%;
  position: absolute;
  z-index: 999;
  bottom: 0;
  left: 0;
  border-top: 1px solid #e8e8e8;
  padding: 10px 16px;
  text-align: right;
  background: #fff;
}

// 输入框 small
.el-input--small {
  font-size: 14px;
  .el-input__inner {
    height: 33px;
    line-height: 34px;
  }
  .el-input__suffix {
    top: -2px !important;
  }
}

// 时间选择器 small
.el-range-editor--small {
  height: 33px !important;
  .el-range-input {
    font-size: 14px;
  }
  .el-range__icon {
    line-height: 25px;
  }
}

// 按钮 small
.el-button--small {
  font-size: 14px;
  line-height: 13px;

  i {
    font-size: 12px;
  }
}

// el-result
.el-result {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  box-sizing: border-box;
  padding: 40px 30px;
}
.el-result__icon svg {
  width: 64px;
  height: 64px;
}
.el-result__title {
  margin-top: 20px;
}
.el-result__title p {
  margin: 0;
  font-size: 20px;
  color: $--color-text-primary;
  line-height: 1.3;
}
.el-result__subtitle {
  margin-top: 10px;
}
.el-result__subtitle p {
  margin: 0;
  font-size: 14px;
  color: $--color-text-regular;
  line-height: 1.3;
}
.el-result__extra {
  margin-top: 30px;
}
.el-result .icon-success {
  fill: $--color-success;
}
.el-result .icon-error {
  fill: $--color-danger;
}
.el-result .icon-info {
  fill: #909399;
}
.el-result .icon-warning {
  fill: $--color-warning;
}
